package com.manage.mapper;

import com.manage.pojo.operation.ShoppingsList;
import com.manage.utils.MyMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShoppingsListMapper extends MyMapper<ShoppingsList> {

    /**
     * @Description: 根据购物id获取购物详细信息
     */
    public ShoppingsList queryShoppingByShoppingId(@Param("shoppingId") String shoppingId);

    /**
     * @Description: 获取所有购物车详细信息
     */
    public List<ShoppingsList> queryAllShoppings();

    /**
     * @Description: 根据用户id获取购物详细信息
     */
    public List<ShoppingsList> queryShoppingsByUserId(@Param("userId") String userId);

    /**
     * @Description: 根据鞋id获取购物详细信息
     */
    public List<ShoppingsList> queryShoppingsByShoesId(@Param("shoesId") String shoesId);
}